package com.power.flowable.model.pageinfo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;

/**
 *  流程统计条件查询
 */

@Data
@ApiModel(value="流程统计条件查询")
@EqualsAndHashCode(callSuper = false)
public class ProcessStatisticsPageInfo extends FlowablePageInfo {



        @ApiModelProperty(value = "发起人")
        private String startUser;

        @ApiModelProperty(value = "业务名")
        private String businessName;

        /**
         * 申请编号
         */
        private String applyno;

        /**
         * 受理编号
         */
        private String acceptcode;

        /**
         * 主体名称
         */
        private String applyname;

        /**
         * 分类
         */
        private String category;


        @ApiModelProperty(value = "提交开始区间", example = "2020-02-05 13:30:41")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
        private Timestamp subtimeStart;


        @ApiModelProperty(value = "提交结束区间", example = "2020-02-05 13:30:41")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
        private Timestamp subtimeEnd;

        /**
         * 许可证类型
         */
        private String biztype;

        /**
         * 业务类型
         */
        private Integer type;

        /**
         * 状态
         */
        private Integer state;

        // 是否历史流程
        private boolean history = false;

        // 申请产品
        private String prods;

        // 单位id
        private Integer sectionid;

}
